// pemangginlan ajax
var biji_terima_find = function(label){
	$.get("ajax/findBijiTerima.php", 
		{subbagian: '<?=$subbagian;?>', label_tandan: label},
		function(data){
			var jml = data.jml_biji_terima;
			if( jml > 1 ){
				$('input#jml_biji_terima').val(jml);
			}
		}, 
       "json"  // here you specify that the return type is JSON
       );
}

$('input#label_tandan').change(function(){
	biji_terima_find($(this).val());
});
